<?php
namespace app\admin\controller;
use think\Controller;

class BaseController extends Controller {

	public function _initialize() {
		if (!cookie('user')) {
			$this->redirect("/index.php/Admin/Login");
		}
	}

}